import request from '../../utils/request'

const api_name = "car"


export function addToCar(addCarVo) {
    return request({
        url: `/${api_name}/addtocar`,
        method: 'POST',
        data: addCarVo
    })
}

export function getCarListByUid(){
    return request({
        url: `/${api_name}/carlist`,
        method: 'get'
    })
}

export function doDelete(id){
    return request({
        url: `/${api_name}/remove/${id}`,
        method: 'DELETE'
    })
}

export function editCount(id,number){
    return request({
        url: `/${api_name}/editNumber/${id}/${number}`,
        method: 'PUT'
    })
}
